package layer_model;

public class LayerModelFactory {
	public static LayerModel getModel(String modelType) {
		LayerModel model;
		if(modelType.compareTo("cascade") == 0) {
			model = new CascadeLayerModel();
		} else if(modelType.compareTo("greedy") == 0) {
			model = new GreedyLayerModel();
		} else {
			throw new RuntimeException("model type not defilne! " + modelType);
		}
		
		return model;
	}
}
